import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;


public class Sequence {
	private List<Element> elements = new ArrayList<Element>();
	
	public Sequence() {
	}
	
	public Sequence(Element e) {
		elements.add(e);
	}
	
	public void add(Element e) {
		elements.add(0, e);
	}
	
	public List<Element> getElements() {
		return elements;
	}
	
	public int numElements() {
		return elements.size();
	}
	
	public Sequence clone() {
		Sequence newSeq = new Sequence();
		List<Element> newElements = new ArrayList<Element>();
		
		newSeq.elements = newElements;
		
		for(Element element : elements) {
			newElements.add(element.clone());
		}
		
		return newSeq;
	}
}
